package com.dao.impl;

import com.dao.DButil;
import com.dao.LeaveDao;
import com.model.Leave;

public class LeaveDaoimpl extends DButil implements LeaveDao {
    @Override
    public void addLeave(Integer id) {
        System.out.println("id222 = " + id);
//        String sql="insert into tbl_leave values(default,?,?,now()";
//        super.executeUpdate(sql,leave.getId(),leave.getLeave_reasons());
        String  sql= "update book set state=-1 where id=?";
        super.executeUpdate(sql, id);
    }
}
